/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const router = {
  hidden: false,
  path: '/warehouseFoundationManagement',
  component: Layout,
  redirect: '/warehouseFoundationManagement/warehouseInformation-list',
  meta: {
    title: '仓库基础管理',
    icon: 'international',
    roles: ['BusinessModuleManagement.WarehouseFoundationManagement']
  },
  children: [
    {
      hidden: false,
      path: 'warehouseInformation-list',
      name: 'WarehouseFoundationManagementWarehouseInformation',
      component: () => import('@/views/warehouseFoundationManagement/warehouseInformation/list'),
      meta: { title: '仓库资料', icon: '', roles: ['WarehouseInformationManagement.WarehouseInformation'] }
    },
    {
      path: 'warehouseInformation-create',
      name: 'WarehouseInformationCreate',
      component: () => import('@/views/warehouseFoundationManagement/warehouseInformation/create'),
      meta: { title: '添加仓库资料', icon: 'edit', roles: ['WarehouseInformationManagement.WarehouseInformation.Create'] },
      hidden: true
    },
    {
      path: 'warehouseInformation-edit/:id',
      name: 'WarehouseInformationEdit',
      component: () => import('@/views/warehouseFoundationManagement/warehouseInformation/edit'),
      meta: { title: '编辑仓库资料', roles: ['WarehouseInformationManagement.WarehouseInformation.Update'], noCache: true },
      hidden: true
    },
    {
      path: 'warehouseInformation-preview/:id',
      name: 'WarehouseInformationPreview',
      component: () => import('@/views/warehouseFoundationManagement/warehouseInformation/preview'),
      meta: { title: '查看仓库资料', roles: ['WarehouseInformationManagement.WarehouseInformation'], noCache: true },
      hidden: true
    },
    {
      hidden: false,
      path: 'warehouseArea-list',
      name: 'WarehouseFoundationManagementWarehouseArea',
      component: () => import('@/views/warehouseFoundationManagement/warehouseArea/list'),
      meta: { title: '库区管理', icon: '', roles: ['WarehouseAreaManagement.WarehouseArea'] }
    },
    {
      path: 'warehouseArea-create',
      name: 'WarehouseAreaCreate',
      component: () => import('@/views/warehouseFoundationManagement/warehouseArea/create'),
      meta: { title: '添加库区', icon: 'edit', roles: ['WarehouseAreaManagement.WarehouseArea.Create'] },
      hidden: true
    },
    {
      path: 'warehouseArea-edit/:id',
      name: 'WarehouseAreaEdit',
      component: () => import('@/views/warehouseFoundationManagement/warehouseArea/edit'),
      meta: { title: '编辑库区', roles: ['WarehouseAreaManagement.WarehouseArea.Update'], noCache: true },
      hidden: true
    },
    {
      path: 'warehouseArea-preview/:id',
      name: 'WarehouseAreaPreview',
      component: () => import('@/views/warehouseFoundationManagement/warehouseArea/preview'),
      meta: { title: '查看库区', roles: ['WarehouseAreaManagement.WarehouseArea'], noCache: true },
      hidden: true
    },
    {
      hidden: false,
      path: 'warehouseLocation-list',
      name: 'WarehouseFoundationManagementWarehouseLocation',
      component: () => import('@/views/warehouseFoundationManagement/warehouseLocation/list'),
      meta: { title: '库位维护', icon: '', roles: ['WarehouseLocationManagement.WarehouseLocation'] }
    },
    {
      path: 'warehouseLocation-create',
      name: 'WarehouseLocationCreate',
      component: () => import('@/views/warehouseFoundationManagement/warehouseLocation/create'),
      meta: { title: '添加库位', icon: 'edit', roles: ['WarehouseLocationManagement.WarehouseLocation.Create'] },
      hidden: true
    },
    {
      path: 'warehouseLocation-edit/:id',
      name: 'WarehouseLocationEdit',
      component: () => import('@/views/warehouseFoundationManagement/warehouseLocation/edit'),
      meta: { title: '编辑库位', roles: ['WarehouseLocationManagement.WarehouseLocation.Update'], noCache: true },
      hidden: true
    },
    {
      path: 'warehouseLocation-preview/:id',
      name: 'WarehouseLocationPreview',
      component: () => import('@/views/warehouseFoundationManagement/warehouseLocation/preview'),
      meta: { title: '查看库位', roles: ['WarehouseLocationManagement.WarehouseLocation'], noCache: true },
      hidden: true
    },
    {
      hidden: false,
      path: 'shelfInformation-list',
      name: 'WarehouseFoundationManagementShelfInformation',
      component: () => import('@/views/warehouseFoundationManagement/shelfInformation/list'),
      meta: { title: '货架资料', icon: '', roles: ['ShelfInformationManagement.ShelfInformation'] }
    },
    {
      path: 'shelfInformation-create',
      name: 'ShelfInformationCreate',
      component: () => import('@/views/warehouseFoundationManagement/shelfInformation/create'),
      meta: { title: '添加货架资料', icon: 'edit', roles: ['ShelfInformationManagement.ShelfInformation.Create'] },
      hidden: true
    },
    {
      path: 'shelfInformation-edit/:id',
      name: 'ShelfInformationEdit',
      component: () => import('@/views/warehouseFoundationManagement/shelfInformation/edit'),
      meta: { title: '编辑货架资料', roles: ['ShelfInformationManagement.ShelfInformation.Update'], noCache: true },
      hidden: true
    },
    {
      path: 'shelfInformation-preview/:id',
      name: 'ShelfInformationPreview',
      component: () => import('@/views/warehouseFoundationManagement/shelfInformation/preview'),
      meta: { title: '查看货架资料', roles: ['ShelfInformationManagement.ShelfInformation'], noCache: true },
      hidden: true
    },
    {
      hidden: false,
      path: 'client-list',
      name: 'WarehouseFoundationManagementClient',
      component: () => import('@/views/warehouseFoundationManagement/client/list'),
      meta: { title: '客户', icon: '', roles: ['ClientManagement.Client'] }
    },
    {
      path: 'client-create',
      name: 'ClientCreate',
      component: () => import('@/views/warehouseFoundationManagement/client/create'),
      meta: { title: '添加客户', icon: 'edit', roles: ['ClientManagement.Client.Create'] },
      hidden: true
    },
    {
      path: 'client-edit/:id',
      name: 'ClientEdit',
      component: () => import('@/views/warehouseFoundationManagement/client/edit'),
      meta: { title: '编辑客户', roles: ['ClientManagement.Client.Update'], noCache: true },
      hidden: true
    },
    {
      path: 'client-preview/:id',
      name: 'ClientPreview',
      component: () => import('@/views/warehouseFoundationManagement/client/preview'),
      meta: { title: '查看客户', roles: ['ClientManagement.Client'], noCache: true },
      hidden: true
    },
    {
      hidden: false,
      path: 'goodsCategory-list',
      name: 'WarehouseFoundationManagementGoodsCategory',
      component: () => import('@/views/warehouseFoundationManagement/goodsCategory/list'),
      meta: { title: '货品类别', icon: '', roles: ['GoodsCategoryManagement.GoodsCategory'] }
    },
    {
      path: 'goodsCategory-create',
      name: 'GoodsCategoryCreate',
      component: () => import('@/views/warehouseFoundationManagement/goodsCategory/create'),
      meta: { title: '添加货品类别', icon: 'edit', roles: ['GoodsCategoryManagement.GoodsCategory.Create'] },
      hidden: true
    },
    {
      path: 'goodsCategory-edit/:id',
      name: 'GoodsCategoryEdit',
      component: () => import('@/views/warehouseFoundationManagement/goodsCategory/edit'),
      meta: { title: '编辑货品类别', roles: ['GoodsCategoryManagement.GoodsCategory.Update'], noCache: true },
      hidden: true
    },
    {
      path: 'goodsCategory-preview/:id',
      name: 'GoodsCategoryPreview',
      component: () => import('@/views/warehouseFoundationManagement/goodsCategory/preview'),
      meta: { title: '查看货品类别', roles: ['GoodsCategoryManagement.GoodsCategory'], noCache: true },
      hidden: true
    },
    {
      hidden: false,
      path: 'goods-list',
      name: 'WarehouseFoundationManagementGoods',
      component: () => import('@/views/warehouseFoundationManagement/goods/list'),
      meta: { title: '货品', icon: '', roles: ['GoodsManagement.Goods'] }
    },
    {
      path: 'goods-create',
      name: 'GoodsCreate',
      component: () => import('@/views/warehouseFoundationManagement/goods/create'),
      meta: { title: '添加货品', icon: 'edit', roles: ['GoodsManagement.Goods.Create'] },
      hidden: true
    },
    {
      path: 'goods-edit/:id',
      name: 'GoodsEdit',
      component: () => import('@/views/warehouseFoundationManagement/goods/edit'),
      meta: { title: '编辑货品', roles: ['GoodsManagement.Goods.Update'], noCache: true },
      hidden: true
    },
    {
      path: 'goods-preview/:id',
      name: 'GoodsPreview',
      component: () => import('@/views/warehouseFoundationManagement/goods/preview'),
      meta: { title: '查看货品', roles: ['GoodsManagement.Goods'], noCache: true },
      hidden: true
    },
    {
      hidden: false,
      path: 'packagingItem-list',
      name: 'WarehouseFoundationManagementPackagingItem',
      component: () => import('@/views/warehouseFoundationManagement/packagingItem/list'),
      meta: { title: '包装物品', icon: '', roles: ['PackagingItemManagement.PackagingItem'] }
    },
    {
      path: 'packagingItem-create',
      name: 'PackagingItemCreate',
      component: () => import('@/views/warehouseFoundationManagement/packagingItem/create'),
      meta: { title: '添加包装物品', icon: 'edit', roles: ['PackagingItemManagement.PackagingItem.Create'] },
      hidden: true
    },
    {
      path: 'packagingItem-edit/:id',
      name: 'PackagingItemEdit',
      component: () => import('@/views/warehouseFoundationManagement/packagingItem/edit'),
      meta: { title: '编辑包装物品', roles: ['PackagingItemManagement.PackagingItem.Update'], noCache: true },
      hidden: true
    },
    {
      path: 'packagingItem-preview/:id',
      name: 'PackagingItemPreview',
      component: () => import('@/views/warehouseFoundationManagement/packagingItem/preview'),
      meta: { title: '查看包装物品', roles: ['PackagingItemManagement.PackagingItem'], noCache: true },
      hidden: true
    },
    {
      hidden: true,
      path: 'documentType-list',
      name: 'WarehouseFoundationManagementDocumentType',
      component: () => import('@/views/warehouseFoundationManagement/documentType/list'),
      meta: { title: '单据类型', icon: '', roles: ['DocumentTypeManagement.DocumentType'] }
    }
  ]
}

export default router
